home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / Display.h.z / Display.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  2.5 KB  |  99 lines

  1. /*
  2.  * Display.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: Display.h /main/cde1_maint/2 1995/08/18 18:56:46 drk $ */
  36. /*
  37. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38.  
  39. #ifndef _XmDisplay_h
  40. #define _XmDisplay_h
  41.  
  42. #include <Xm/Xm.h>
  43. #include <X11/Shell.h>
  44. #include <Xm/DragC.h>
  45. #include <Xm/DropSMgr.h>
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. #ifndef XmIsDisplay
  52. #define XmIsDisplay(w) (XtIsSubclass(w, xmDisplayClass))
  53. #endif /* XmIsXmDisplay */
  54.  
  55. enum {
  56.     XmDRAG_NONE,
  57.     XmDRAG_DROP_ONLY,
  58.     XmDRAG_PREFER_PREREGISTER,
  59.     XmDRAG_PREREGISTER,
  60.     XmDRAG_PREFER_DYNAMIC,
  61.     XmDRAG_DYNAMIC,
  62.     XmDRAG_PREFER_RECEIVER
  63. };
  64.  
  65. /* Class record constants */
  66.  
  67. typedef struct _XmDisplayRec *XmDisplay;
  68. typedef struct _XmDisplayClassRec *XmDisplayClass;
  69. externalref     WidgetClass xmDisplayClass;
  70.  
  71. #define XmGetDisplay(w) XmGetXmDisplay(XtDisplayOfObject(w))
  72.  
  73.  
  74. /********    Public Function Declarations    ********/
  75. #ifdef _NO_PROTO
  76.  
  77. extern Widget XmGetDragContext() ;
  78. extern Widget XmGetXmDisplay() ;
  79.  
  80. #else
  81.  
  82. extern Widget XmGetDragContext( 
  83.                         Widget w,
  84.                         Time time) ;
  85. extern Widget XmGetXmDisplay( 
  86.                         Display *display) ;
  87.  
  88. #endif /* _NO_PROTO */
  89. /********    End Public Function Declarations    ********/
  90.  
  91.  
  92. #ifdef __cplusplus
  93. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  94. #endif
  95.  
  96. #endif /* _XmDisplay_h */
  97.  
  98.  
  99.